﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing"
	mc:Ignorable="d"
	x:Class="TTIServer.TTISettings.calloutEKAction"
	x:Name="UserControl" d:DesignHeight="355" Width="382">

	<UserControl.Resources>
		<Storyboard x:Key="CalloutFade">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="callout">
				<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="callout">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
		</Storyboard>
				<ControlTemplate x:Key="DTK2100_PTKX40_Button" TargetType="{x:Type Button}">
			<Grid MaxHeight="30" MaxWidth="150" Background="DarkGray">
				<Grid Margin="1"  x:Name="xTK_Background">
					<Grid.Background>
						<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
							<GradientStop Color="Black" Offset="0.259"/>
							<GradientStop Color="#FF9f9f9f"/>
						</LinearGradientBrush>
					</Grid.Background>
					
					<Viewbox>
						<ContentControl Margin="3" FontSize="10" FontFamily="Segoe" Content="{TemplateBinding Content}" Foreground="White"/>
					</Viewbox>
				</Grid>
			</Grid>
			<ControlTemplate.Triggers>
				<Trigger Property="Button.IsPressed" Value="True">
					<Setter TargetName="xTK_Background" Property="Background">
						<Setter.Value>
							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
								<GradientStop Color="Black" Offset="0.259"/>
								<GradientStop Color="#FF7f7f7f"/>
							</LinearGradientBrush>
						</Setter.Value>
						
					</Setter>
				</Trigger>
			</ControlTemplate.Triggers>
		</ControlTemplate>
	</UserControl.Resources>

	<Grid x:Name="LayoutRoot">
		<ed:Callout x:Name="callout" AnchorPoint="-0.099,0.292" CalloutStyle="RoundedRectangle" Fill="#FF353535" FontSize="14.667" Height="243" VerticalAlignment="Top" Foreground="White" StrokeMiterLimit="5" Stroke="Black" StrokeThickness="4" Margin="10,0,180,0">
			<Grid Height="225" Width="192">
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="7*"/>
					<ColumnDefinition Width="50*"/>
					<ColumnDefinition Width="7*"/>
				</Grid.ColumnDefinitions>
				
				<ListBox x:Name="listBox" HorizontalAlignment="Left" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Height="186.667" VerticalAlignment="Top" Width="172" Background="{x:Null}" BorderBrush="{x:Null}" Margin="10,38.333,0,0" Grid.ColumnSpan="3" >
					
					<Button Template="{StaticResource DTK2100_PTKX40_Button}" Content="Mouse Click" BorderThickness="0" Width="150" Height="30"/>
					<Button Template="{StaticResource DTK2100_PTKX40_Button}" Content="Keystroke" BorderThickness="0" Width="150" Height="30" />
					<Button Template="{StaticResource DTK2100_PTKX40_Button}" Content="Run Application" BorderThickness="0" Width="150" Height="30"/>
					<Button Template="{StaticResource DTK2100_PTKX40_Button}" Content="MIDI Function" BorderThickness="0" Width="150" Height="30" />
					<Button Template="{StaticResource DTK2100_PTKX40_Button}" Content="Special Feature" BorderThickness="0" Width="150" Height="30" />
					

				</ListBox>
				<Button x:Name="button" Template="{StaticResource DTK2100_PTKX40_Button}" Content="Default" HorizontalAlignment="Left" Margin="0.001,10,0,0" VerticalAlignment="Top" Width="65.667" Grid.Column="1" Height="30"/>
				<Button x:Name="button1" Template="{StaticResource DTK2100_PTKX40_Button}" Content="Cancel" HorizontalAlignment="Left" Margin="75,10,0,0" VerticalAlignment="Top" Width="75" Grid.Column="1" IsCancel="True" Height="30"/> 
			
			</Grid>
		</ed:Callout>
	</Grid>
</UserControl>